#include<stdio.h>
int f(int a, int b ,int n)
{
    int c,i;
    for(i=n;i>=1;i--)
    {
        c=a+b;
        a=b;
        b=c;
        printf("%d ",c);
    }
    return 0;
}

int main()
{
   int a,b,c;
   printf("type the series you want to calculate\n");
   scanf("%d %d %d",&a,&b,&c);
   printf("%d %d ",a,b);
   c=c-2;
   f(a,b,c);
   return 0;


}

